﻿//Copyright (C) <2013>  <jonathan cleeve norton> All Rights Reserved 
//Contact jon.norton@fin-plus.co.uk website <http://www.fin-plus.co.uk/>
using System.Windows.Controls;
using FinPlusCommon;

namespace FinPlusWPFControls
{
    public sealed class FinPlusContextMenu:FinPlusControl
    {
        public ContextMenu Menu { get; private set; }

        private enum DockControls { FinPlusMenuItem, Exception }

        //construct
        public FinPlusContextMenu(IFinPlusComp[] menuItems)
        {
            Menu = new ContextMenu();
            foreach(FinPlusMenuItem menuItem in menuItems)
                Menu.Items.Add(menuItem.MenuItem);

            IsValid = true;
        }
    }
}


























































































//Copyright2013<jnrton>AllRightsReserved 
//Contact j.nrton@finpus